
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.base.DataBase"%>
<%@ page language="java" import="com.servlet.UseServlet"%>
<%@ page language="java" import="com.util.UseUtil"%>
<%String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
		%>
<%
String name = request.getParameter("name");
String title =request.getParameter("title");
String mail = request.getParameter("mail");
String msg = request.getParameter("msg");
//DataBase db =new DataBase();
UseUtil uu =new UseUtil();
				if(name==null){
				name="";
				}
				if(title==null){
				title="";
				}
				if(mail==null){
				mail="";
				}
				if(msg==null){
				msg="";
				}
				
				if(name.length()==0&&title.length()==0&&mail.length()==0&&msg.length()==0){
					out.println("留言信息不能为空!");
				}else{
				 
  					//db.addMsg(name,title,mail,msg);
  					//uu.currentSession(name,title,mail,msg);
				}
				
		  		
    	  response.setContentType("text/HTML");

%>
<style type="text/css">
<!--
body {
	margin-left: 100px;
	margin-top: 100px;
}
-->
</style><body>
	Message Box.....Please add the message just in this page!!!
	<br>
	<FORM action="servlet/UseServlet" methon="post">
	<table bgcolor="white" border="1">
		<td colspan="2"><%//=db.getDate()%></td>
		<tr>
			<td>
				Name :
			</td>
			<td>
				<INPUT name="name" type="text" value="" maxlength="20">
			</td>
			
		</tr>
		<tr>
			<td>
				Title :
			</td>
			<td>
				<INPUT name="title" type="text" value="" maxlength="50">
			</td>
		</tr>
		<tr>
			<td>
				EMail :
			</td>
			<td>
				<INPUT name="mail" type="text" value="" maxlength="30">
			</td>
		</tr>
		<tr>
			<td>
				Message :
			</td>
			<td>
				<textarea name="msg" cols="65" rows="6" ></textarea>
			</td>
		</tr>
		<tr>
			<td  align="center">
			<input name="submit" type="submit" value="提交留言">
			<input name="reset" type="reset" value="重置">
			</td>
		</tr>
	</table>
	</FORM>
	<jsp:forward  page="MsgShow.jsp" ></jsp:forward>
	
</body>
</html>
